﻿@{
    ViewBag.Title = "Details"; 
    Layout = "~/Views/Shared/_Form.cshtml";
}
<script>
    layui.use(['jquery', 'form', 'laydate', 'common'], function () {
        var form = layui.form,
            $ = layui.$,
            common = layui.common,
            laydate = layui.laydate;
        var keyValue = $.request("keyValue");
        //权限字段
        common.authorizeFields('adminform');
        //此处需修改
        //类型为时间时
        //laydate.render({
            //elem: '#F_Birthday'
            //, btns: ['clear', 'now']
            //, trigger: 'click',
            //format: 'yyyy-MM-dd',
        //});

        $(function () {
            initControl();
            common.ajax({
                url: '/AttendanceManagement/Holiday/GetFormJson',
                dataType: 'json',
                data: { keyValue: keyValue },
                async: false,
                success: function (data) {
                    common.val('adminform', data);
                    common.setReadOnly('adminform');
                    form.render();
                 }
            });
       });
       wcLoading.close();

       function initControl() {
           //此处需修改
           //绑定数据源
           //类型为下拉框时
       }
   });
</script>

<body>
    <div class="layuimini-container">
        <div class="layuimini-main">
            <div class="layui-form layuimini-form" lay-filter="adminform">
                <div class="layui-form-item layui-hide">
                   <label class="layui-form-label required">F_UserId</label>
                   <div class="layui-input-block">
                        <input type="text" id="F_UserId" name="F_UserId" lay-verify="required" class="layui-input">
                   </div>
               </div>
                <div class="layui-form-item layui-hide">
                   <label class="layui-form-label required">F_Num</label>
                   <div class="layui-input-block">
                        <input type="text" id="F_Num" name="F_Num" lay-verify="required" class="layui-input">
                   </div>
               </div>
                <div class="layui-form-item layui-hide">
                   <label class="layui-form-label required">F_RealName</label>
                   <div class="layui-input-block">
                        <input type="text" id="F_RealName" name="F_RealName" lay-verify="required" class="layui-input">
                   </div>
               </div>
                <div class="layui-form-item layui-hide">
                   <label class="layui-form-label required">F_OrganizeId</label>
                   <div class="layui-input-block">
                        <input type="text" id="F_OrganizeId" name="F_OrganizeId" lay-verify="required" class="layui-input">
                   </div>
               </div>
                <div class="layui-form-item layui-hide">
                   <label class="layui-form-label required">F_HolidayType</label>
                   <div class="layui-input-block">
                        <input type="text" id="F_HolidayType" name="F_HolidayType" lay-verify="required" class="layui-input">
                   </div>
               </div>
                <div class="layui-form-item layui-hide">
                   <label class="layui-form-label required">F_DutyId</label>
                   <div class="layui-input-block">
                        <input type="text" id="F_DutyId" name="F_DutyId" lay-verify="required" class="layui-input">
                   </div>
               </div>
                <div class="layui-form-item layui-hide">
                   <label class="layui-form-label required">F_StartDate</label>
                   <div class="layui-input-block">
                        <input type="text" id="F_StartDate" name="F_StartDate" lay-verify="required" class="layui-input">
                   </div>
               </div>
                <div class="layui-form-item layui-hide">
                   <label class="layui-form-label required">F_EndDate</label>
                   <div class="layui-input-block">
                        <input type="text" id="F_EndDate" name="F_EndDate" lay-verify="required" class="layui-input">
                   </div>
               </div>
                <div class="layui-form-item layui-hide">
                   <label class="layui-form-label required">F_Days</label>
                   <div class="layui-input-block">
                        <input type="text" id="F_Days" name="F_Days" lay-verify="required" class="layui-input">
                   </div>
               </div>
                <div class="layui-form-item layui-hide">
                   <label class="layui-form-label required">F_EnabledMark</label>
                   <div class="layui-input-block">
                        <input type="text" id="F_EnabledMark" name="F_EnabledMark" lay-verify="required" class="layui-input">
                   </div>
               </div>
                <div class="layui-form-item layui-hide">
                   <label class="layui-form-label required">F_Description</label>
                   <div class="layui-input-block">
                        <input type="text" id="F_Description" name="F_Description" lay-verify="required" class="layui-input">
                   </div>
               </div>
                <div class="layui-form-item layui-hide">
                   <label class="layui-form-label required">F_CreatorTime</label>
                   <div class="layui-input-block">
                        <input type="text" id="F_CreatorTime" name="F_CreatorTime" lay-verify="required" class="layui-input">
                   </div>
               </div>
            </div>
        </div>
    </div>
</body>

